import request from '@/utils/request'



export function findAllApi(data) {
  return request({
    url: '/testingEnvironment/list',
    method: 'post',
    data: data
  })
}

export function addTestingEnvironment(data) {
  return request({
    url: '/testingEnvironment/add',
    method: 'post',
    data: data
  })
}

export function updateTestingEnvironment(data) {
  return request({
    url: '/testingEnvironment/update',
    method: 'post',
    data: data
  })
}

export function deleteOneEnvironment(data) {
  return request({
    url: '/testingEnvironment/delete',
    method: 'post',
    data: data
  })
}

export function getOneEnvironment(datasourceId) {
  return request({
    url: '/testingEnvironment/detail/'+datasourceId,
    method: 'get'
  })
}
